package com.gxa.hualian.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.stereotype.Component;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 杨天可
 * @Date 2020/10/20 15:02
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Table(name = "tb_ticket")
public class Ticket implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "tkt_id")
    private Integer id;
    @Column(name = "tkt_name")
    private  String name;
    @Column(name = "tkt_desc")
    private  String desc;
    @Column(name = "tkt_role")
    private  String role;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @Column(name = "tkt_collectExpired")
    private Date collectExpired;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    @Column(name = "tkt_useExpired")
    private  Date useExpired;
    @Column(name = "tkt_state")
    private  Integer state;
    @Column(name = "tkt_img")
    private  String img;

}
